$("#repassword").change(function () {
     if($("#password").val()!=$("#repassword").val()){
         $("#repassword").css("border","2px solid red")
         $("#text").css("color","red")
         $("#sub").attr("disabled","true")
         f1=false;
         return $.growl.error({
             title: "输入错误",
             message: "两次输入密码不一致!"
         });
     }else {
         $("#repassword").css("border","2px solid seagreen")
         $("#text").css("color","slateblue")
         f1=true
         if(f1&&f2&&f3&&f4) {
             $("#sub").removeAttr("disabled")
         }
         return $.growl.notice({
             title: "输入正确",
             message: "两次输出相同啦！"
         });
     }
})

$("#file").change(function () {
    var file=$("#file")[0].files[0];
    var path=window.URL.createObjectURL(file)
    $("#header").attr("src",path)
})
